package com.gperp.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.gperp.common.GPResult;
import com.gperp.pojo.AsSystemconfig;
import com.gperp.service.SystemService;

@Controller
public class SystemController {
	@Resource
	private SystemService systemService;
	
	@RequestMapping(value="querySystemAll",method=RequestMethod.GET)
	@CrossOrigin
	@ResponseBody
	public List<AsSystemconfig> querySystemAll(){
		return systemService.querySystemAll();
	}
	
	@RequestMapping(value="xufei",method=RequestMethod.POST)
	@CrossOrigin
	@ResponseBody
	public GPResult xufei(Long id,Integer type,Integer year,Double price){
		return systemService.updatexufei(id, type, year,price);
	}
}
